﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_DinhNghiaPhuTung : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTab2")]
        private C1DockingTab _C1DockingTab2;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("CboNhom")]
        private ComboBox _CboNhom;
        [AccessedThroughProperty("ckHienThi")]
        private CheckBox _ckHienThi;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdAddRow")]
        private Button _CmdAddRow;
        [AccessedThroughProperty("CmdCoppy")]
        private ToolStripButton _CmdCoppy;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdDelRow")]
        private Button _CmdDelRow;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripButton _CmdPrint;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripButton2")]
        private ToolStripButton _ToolStripButton2;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("TxtSearchCode")]
        private TextBox _TxtSearchCode;
        [AccessedThroughProperty("TxtSearchName")]
        private TextBox _TxtSearchName;
        [AccessedThroughProperty("VSList")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSList;
        [AccessedThroughProperty("VSPhuTung")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSPhuTung;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnabledControl;
        private clsDMHangHoa objDMHangHoa;
        private DataView pData;

        public Frm_DinhNghiaPhuTung()
        {
            base.KeyDown += new KeyEventHandler(this.Frm_DinhNghiaPhuTung_KeyDown);
            base.Load += new EventHandler(this.Frm_DinhNghiaPhuTung_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objDMHangHoa = new clsDMHangHoa();
            this.InitializeComponent();
        }

        private void CboNhom_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void ckHienThi_CheckedChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            this.EnabledControl = true;
        }

        private void CmdAddRow_Click(object sender, EventArgs e)
        {
            string expression = "";
            expression = SearchModule.SearchHangHoa("", "", "");
            if (expression.Trim() != "")
            {
                object instance = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                this.VSPhuTung.AddItem("");
                this.VSPhuTung[this.VSPhuTung.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null));
                this.VSPhuTung[this.VSPhuTung.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 1 }, null));
                this.VSPhuTung[this.VSPhuTung.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 2 }, null));
                this.objDMHangHoa.Load(Conversions.ToString(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null)));
                clsDMDonViTinh tinh = new clsDMDonViTinh();
                tinh.Load(this.objDMHangHoa.KhoaDonViTinh);
                this.VSPhuTung[this.VSPhuTung.Rows.Count - 1, 4] = tinh.Khoa;
                this.VSPhuTung[this.VSPhuTung.Rows.Count - 1, 5] = tinh.TenViet;
                this.objDMHangHoa.LoadGiaBan(Conversions.ToString(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null)), modGeneral.H_GIACHUAN, modGeneral.H_CURRENCY);
                this.VSPhuTung[this.VSPhuTung.Rows.Count - 1, 6] = this.objDMHangHoa.GiaBan;
            }
        }

        private void CmdCoppy_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_TimHangHoa.strConditions = " And HH.Khoa in (SELECT KhoaThietBi FROM DM_ChiTietPhuTungThietBi)";
            MyProject.Forms.Frm_TimHangHoa.ShowDialog();
            string pKhoaThietBi = "";
            string valueReturn = "";
            valueReturn = MyProject.Forms.Frm_TimHangHoa.ValueReturn;
            if (valueReturn.Trim() != "")
            {
                pKhoaThietBi = LVYModule.sLeft(valueReturn.Trim(), 10);
                this.LoadDataCopy(pKhoaThietBi);
                this.EnabledControl = true;
            }
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if (((this.VSList.Rows.Count != 1) && LVYModule.ConfirmDelete("")) && this.objDMHangHoa.ClearPhuTungThietBi(Conversions.ToString(this.VSList[this.VSList.Row, 0])))
            {
                this.VSPhuTung.Rows.Count = 1;
            }
        }

        private void CmdDelRow_Click(object sender, EventArgs e)
        {
            if (this.VSPhuTung.Rows.Count != 1)
            {
                this.VSPhuTung.RemoveItem(this.VSPhuTung.Row);
            }
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            this.objDMHangHoa.ClearPhuTungThietBi(Conversions.ToString(this.VSList[this.VSList.Row, 0]));
            C1.Win.C1FlexGrid.C1FlexGrid vSPhuTung = this.VSPhuTung;
            int num2 = vSPhuTung.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSPhuTung[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    vSPhuTung[i, 0] = modGeneral.CreatKey("DM_ChiTietPhuTungThietBi", 10, "");
                }
                this.objDMHangHoa.SaveChiTietPhuTungThietBi(Conversions.ToString(vSPhuTung[i, 0]), Conversions.ToString(this.VSList[this.VSList.Row, 0]), Conversions.ToString(vSPhuTung[i, 1]), Conversions.ToString(vSPhuTung[i, 4]), 1);
            }
            vSPhuTung = null;
            this.EnabledControl = false;
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            this.EnabledControl = false;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_DinhNghiaPhuTung_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F1)
            {
                LVYModule.ShowHelp(@"DANHMUCDUNGCHUNG\DANHMUC\PHUTUNGTAISAN.mht");
            }
        }

        private void Frm_DinhNghiaPhuTung_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                this.Cursor = Cursors.Default;
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboNhom, modGeneral.ListDanhMuc.NhomHangHoa, true, "", "");
                this.EnabledControl = false;
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_DinhNghiaPhuTung));
            this.VSList = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel2 = new Panel();
            this.Label8 = new Label();
            this.Label7 = new Label();
            this.TxtSearchName = new TextBox();
            this.TxtSearchCode = new TextBox();
            this.Panel1 = new Panel();
            this.ckHienThi = new CheckBox();
            this.Label18 = new Label();
            this.CboNhom = new ComboBox();
            this.CmdDelRow = new Button();
            this.CmdAddRow = new Button();
            this.VSPhuTung = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.CmdSave = new ToolStripButton();
            this.CmdUnsave = new ToolStripButton();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.CmdFind = new ToolStripButton();
            this.CmdPrint = new ToolStripButton();
            this.ToolStripButton1 = new ToolStripSeparator();
            this.CmdDel = new ToolStripButton();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.CmdExit = new ToolStripButton();
            this.ToolStripButton2 = new ToolStripButton();
            this.CmdCoppy = new ToolStripButton();
            this.C1DockingTab1 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.C1DockingTab2 = new C1DockingTab();
            this.C1DockingTabPage2 = new C1DockingTabPage();
            this.VSList.BeginInit();
            this.Panel2.SuspendLayout();
            this.Panel1.SuspendLayout();
            this.VSPhuTung.BeginInit();
            this.ToolStrip1.SuspendLayout();
            ((ISupportInitialize) this.C1DockingTab1).BeginInit();
            this.C1DockingTab1.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            ((ISupportInitialize) this.C1DockingTab2).BeginInit();
            this.C1DockingTab2.SuspendLayout();
            this.C1DockingTabPage2.SuspendLayout();
            this.SuspendLayout();
            this.VSList.AllowEditing = false;
            this.VSList.AutoResize = false;
            this.VSList.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSList.ColumnInfo = "3,0,0,0,0,85,Columns:0{Caption:\"Kh\x00f3a\";Visible:False;}\t1{Caption:\"M\x00e3\";}\t2{Caption:\"T\x00ean\";}\t";
            this.VSList.Dock = DockStyle.Fill;
            this.VSList.ExtendLastCol = true;
            this.VSList.FocusRect = FocusRectEnum.None;
            Point point = new Point(0, 0x31);
            this.VSList.Location = point;
            this.VSList.Name = "VSList";
            this.VSList.Rows.Count = 1;
            this.VSList.Rows.DefaultSize = 0x11;
            this.VSList.SelectionMode = SelectionModeEnum.Row;
            Size size = new Size(0x171, 0x17a);
            this.VSList.Size = size;
            this.VSList.StyleInfo = manager.GetString("VSList.StyleInfo");
            this.VSList.TabIndex = 0x23;
            this.VSList.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.Panel2.Controls.Add(this.Label8);
            this.Panel2.Controls.Add(this.Label7);
            this.Panel2.Controls.Add(this.TxtSearchName);
            this.Panel2.Controls.Add(this.TxtSearchCode);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new Point(0, 0x1ab);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x171, 40);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x22;
            this.Label8.AutoSize = true;
            this.Label8.BackColor = Color.Transparent;
            point = new Point(0x5f, 0x19);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x2a, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 0x17;
            this.Label8.Text = "T\x00ecm t\x00ean";
            this.Label7.AutoSize = true;
            this.Label7.BackColor = Color.Transparent;
            point = new Point(3, 0x19);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x29, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 0x16;
            this.Label7.Text = "T\x00ecm m\x00e3";
            point = new Point(0x63, 2);
            this.TxtSearchName.Location = point;
            this.TxtSearchName.Name = "TxtSearchName";
            size = new Size(0xe5, 20);
            this.TxtSearchName.Size = size;
            this.TxtSearchName.TabIndex = 0x15;
            point = new Point(6, 2);
            this.TxtSearchCode.Location = point;
            this.TxtSearchCode.Name = "TxtSearchCode";
            size = new Size(90, 20);
            this.TxtSearchCode.Size = size;
            this.TxtSearchCode.TabIndex = 20;
            this.Panel1.Controls.Add(this.ckHienThi);
            this.Panel1.Controls.Add(this.Label18);
            this.Panel1.Controls.Add(this.CboNhom);
            this.Panel1.Dock = DockStyle.Top;
            point = new Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x171, 0x31);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0x21;
            this.ckHienThi.AutoSize = true;
            this.ckHienThi.Checked = true;
            this.ckHienThi.CheckState = CheckState.Checked;
            point = new Point(0x4b, 0x1d);
            this.ckHienThi.Location = point;
            this.ckHienThi.Name = "ckHienThi";
            size = new Size(0xe8, 0x11);
            this.ckHienThi.Size = size;
            this.ckHienThi.TabIndex = 0x23;
            this.ckHienThi.Text = "Chỉ hiển thị mặt h\x00e0ng c\x00f3 phụ t\x00f9ng k\x00e8m theo";
            this.ckHienThi.UseVisualStyleBackColor = true;
            this.Label18.AutoSize = true;
            this.Label18.BackColor = Color.Transparent;
            this.Label18.ForeColor = Color.Black;
            point = new Point(7, 4);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x3e, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0x22;
            this.Label18.Text = "Nh\x00f3m h\x00e0ng";
            this.CboNhom.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboNhom.FormattingEnabled = true;
            point = new Point(0x4b, 4);
            this.CboNhom.Location = point;
            this.CboNhom.Name = "CboNhom";
            size = new Size(0xfd, 0x15);
            this.CboNhom.Size = size;
            this.CboNhom.TabIndex = 0x21;
            this.CmdDelRow.Image = (Image) manager.GetObject("CmdDelRow.Image");
            this.CmdDelRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(100, 0x1b1);
            this.CmdDelRow.Location = point;
            this.CmdDelRow.Name = "CmdDelRow";
            size = new Size(0x55, 0x18);
            this.CmdDelRow.Size = size;
            this.CmdDelRow.TabIndex = 0x26;
            this.CmdDelRow.Text = "&2.X\x00f3a d\x00f2ng";
            this.CmdDelRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdDelRow.UseVisualStyleBackColor = true;
            this.CmdAddRow.Image = (Image) manager.GetObject("CmdAddRow.Image");
            this.CmdAddRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(5, 0x1b1);
            this.CmdAddRow.Location = point;
            this.CmdAddRow.Name = "CmdAddRow";
            size = new Size(0x5d, 0x18);
            this.CmdAddRow.Size = size;
            this.CmdAddRow.TabIndex = 0x25;
            this.CmdAddRow.Text = "&1.Th\x00eam d\x00f2ng";
            this.CmdAddRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdAddRow.UseVisualStyleBackColor = true;
            this.VSPhuTung.AutoResize = false;
            this.VSPhuTung.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSPhuTung.ColumnInfo = manager.GetString("VSPhuTung.ColumnInfo");
            this.VSPhuTung.Dock = DockStyle.Top;
            this.VSPhuTung.ExtendLastCol = true;
            point = new Point(0, 0);
            this.VSPhuTung.Location = point;
            this.VSPhuTung.Name = "VSPhuTung";
            this.VSPhuTung.Rows.Count = 1;
            this.VSPhuTung.Rows.DefaultSize = 0x11;
            size = new Size(0x1a3, 0x1ac);
            this.VSPhuTung.Size = size;
            this.VSPhuTung.StyleInfo = manager.GetString("VSPhuTung.StyleInfo");
            this.VSPhuTung.TabIndex = 0x24;
            this.VSPhuTung.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.CmdAdd, this.CmdEdit, this.ToolStripSeparator2, this.CmdSave, this.CmdUnsave, this.ToolStripSeparator1, this.CmdFind, this.CmdPrint, this.ToolStripButton1, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.ToolStripButton2, this.CmdCoppy });
            point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            size = new Size(0x318, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 0x12;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x49, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Thiết lập";
            this.CmdAdd.ToolTipText = "F8 Th\x00eam mới";
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x2e, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Sửa";
            this.CmdEdit.ToolTipText = "F2 Sửa";
            this.CmdEdit.Visible = false;
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.CmdSave.Image = (Image) manager.GetObject("CmdSave.Image");
            this.CmdSave.ImageTransparentColor = Color.WhiteSmoke;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x2f, 0x16);
            this.CmdSave.Size = size;
            this.CmdSave.Text = "&Lưu";
            this.CmdSave.ToolTipText = "F10 Lưu";
            this.CmdUnsave.Image = (Image) manager.GetObject("CmdUnsave.Image");
            this.CmdUnsave.ImageTransparentColor = Color.White;
            this.CmdUnsave.Name = "CmdUnsave";
            size = new Size(0x39, 0x16);
            this.CmdUnsave.Size = size;
            this.CmdUnsave.Text = "&K.Lưu";
            this.CmdUnsave.ToolTipText = "F11 Kh\x00f4ng lưu";
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(6, 0x19);
            this.ToolStripSeparator1.Size = size;
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x4d, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdFind.ToolTipText = "F3 T\x00ecm kiếm";
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x25, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.CmdPrint.ToolTipText = "F12 In";
            this.ToolStripButton1.Name = "ToolStripButton1";
            size = new Size(6, 0x19);
            this.ToolStripButton1.Size = size;
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2f, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.CmdDel.ToolTipText = "F9 X\x00f3a";
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x3a, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.ToolStripButton2.Alignment = ToolStripItemAlignment.Right;
            this.ToolStripButton2.Image = (Image) manager.GetObject("ToolStripButton2.Image");
            this.ToolStripButton2.ImageScaling = ToolStripItemImageScaling.None;
            this.ToolStripButton2.ImageTransparentColor = Color.White;
            this.ToolStripButton2.Name = "ToolStripButton2";
            size = new Size(0x35, 0x16);
            this.ToolStripButton2.Size = size;
            this.ToolStripButton2.Text = "&Help";
            this.CmdCoppy.Image = ACCOUNTING.My.Resources.Resources.copy;
            this.CmdCoppy.ImageTransparentColor = Color.Magenta;
            this.CmdCoppy.Name = "CmdCoppy";
            size = new Size(0x37, 0x16);
            this.CmdCoppy.Size = size;
            this.CmdCoppy.Text = "Copy";
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage1);
            this.C1DockingTab1.Dock = DockStyle.Left;
            point = new Point(0, 0x19);
            this.C1DockingTab1.Location = point;
            this.C1DockingTab1.Name = "C1DockingTab1";
            size = new Size(0x173, 0x1ed);
            this.C1DockingTab1.Size = size;
            this.C1DockingTab1.TabIndex = 0x13;
            this.C1DockingTab1.TabsSpacing = 5;
            this.C1DockingTab1.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.VSList);
            this.C1DockingTabPage1.Controls.Add(this.Panel2);
            this.C1DockingTabPage1.Controls.Add(this.Panel1);
            this.C1DockingTabPage1.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x171, 0x1d3);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "Thiết bị";
            this.C1DockingTab2.Controls.Add(this.C1DockingTabPage2);
            this.C1DockingTab2.Dock = DockStyle.Fill;
            point = new Point(0x173, 0x19);
            this.C1DockingTab2.Location = point;
            this.C1DockingTab2.Name = "C1DockingTab2";
            size = new Size(0x1a5, 0x1ed);
            this.C1DockingTab2.Size = size;
            this.C1DockingTab2.TabIndex = 20;
            this.C1DockingTab2.TabsSpacing = 5;
            this.C1DockingTab2.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab2.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab2.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage2.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.C1DockingTabPage2.Controls.Add(this.VSPhuTung);
            this.C1DockingTabPage2.Controls.Add(this.CmdDelRow);
            this.C1DockingTabPage2.Controls.Add(this.CmdAddRow);
            this.C1DockingTabPage2.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage2.Location = point;
            this.C1DockingTabPage2.Name = "C1DockingTabPage2";
            size = new Size(0x1a3, 0x1d3);
            this.C1DockingTabPage2.Size = size;
            this.C1DockingTabPage2.TabIndex = 0;
            this.C1DockingTabPage2.Text = "Phụ t\x00f9ng";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x318, 0x206);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.C1DockingTab2);
            this.Controls.Add(this.C1DockingTab1);
            this.Controls.Add(this.ToolStrip1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.KeyPreview = true;
            this.Name = "Frm_DinhNghiaPhuTung";
            this.ShowIcon = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "DINH NGHIA PHU TUNG THEO THIET BI";
            this.VSList.EndInit();
            this.Panel2.ResumeLayout(false);
            this.Panel2.PerformLayout();
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.VSPhuTung.EndInit();
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            ((ISupportInitialize) this.C1DockingTab1).EndInit();
            this.C1DockingTab1.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            ((ISupportInitialize) this.C1DockingTab2).EndInit();
            this.C1DockingTab2.ResumeLayout(false);
            this.C1DockingTabPage2.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadData()
        {
            string str2 = "";
            string strConditions = "";
            str2 = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboNhom.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString();
            if ((str2.Trim() == "") & (this.ckHienThi.CheckState == CheckState.Unchecked))
            {
                C1.Win.C1FlexGrid.C1FlexGrid vSList = this.VSList;
                vSList.DataSource = null;
                vSList.Rows.Count = 1;
                vSList.Cols[0].Visible = false;
                vSList.Cols[1].Width = 100;
                vSList[0, 1] = modGeneral.Tranlated("M\x00e3 thiết bị", "");
                vSList[0, 2] = modGeneral.Tranlated("T\x00ean thiết bị", "");
                vSList = null;
            }
            else
            {
                strConditions = " 1 = 1 ";
                if (str2.Trim() != "")
                {
                    strConditions = " KhoaNhom = '" + str2 + "'";
                }
                if (this.ckHienThi.CheckState == CheckState.Checked)
                {
                    strConditions = strConditions + " AND Khoa in (SELECT KhoaThietBi from DM_ChiTietPhuTungThietBi) ";
                }
                this.pData = new DataView(this.objDMHangHoa.ShowList(strConditions));
                if (this.pData != null)
                {
                    this.VSList.DataSource = this.pData;
                    C1.Win.C1FlexGrid.C1FlexGrid grid2 = this.VSList;
                    grid2.Cols[0].Visible = false;
                    grid2.Cols[1].Width = 100;
                    grid2[0, 1] = modGeneral.Tranlated("M\x00e3 thiết bị", "");
                    grid2[0, 2] = modGeneral.Tranlated("T\x00ean thiết bị", "");
                    grid2 = null;
                    this.VSList.Styles.Alternate.BackColor = ProfessionalColors.ToolStripGradientMiddle;
                }
            }
        }

        public void LoadDataCopy(string pKhoaThietBi)
        {
            DataTable phuTung = this.objDMHangHoa.GetPhuTung(pKhoaThietBi);
            if (phuTung != null)
            {
                C1.Win.C1FlexGrid.C1FlexGrid vSPhuTung = this.VSPhuTung;
                int num2 = phuTung.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    vSPhuTung.AddItem("");
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 0] = "";
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["KhoaPhuTung"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["MaPhuTung"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["TenPhuTung"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["KhoaDonViTinh"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["DonViTinh"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["GiaBan"]);
                }
                vSPhuTung = null;
            }
        }

        public void LoadPhuTung(string pKhoaThietBi)
        {
            DataTable phuTung = this.objDMHangHoa.GetPhuTung(pKhoaThietBi);
            if (phuTung != null)
            {
                C1.Win.C1FlexGrid.C1FlexGrid vSPhuTung = this.VSPhuTung;
                int num2 = phuTung.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    vSPhuTung.AddItem("");
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["Khoa"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["KhoaPhuTung"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["MaPhuTung"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["TenPhuTung"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["KhoaDonViTinh"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["DonViTinh"]);
                    vSPhuTung[vSPhuTung.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["GiaBan"]);
                }
                vSPhuTung = null;
            }
        }

        public void SearchThietBi(string field, string str)
        {
            string str2 = field + " LIKE '%" + str + "%'";
            this.pData.RowFilter = str2;
            if (this.VSList.Rows.Count != 1)
            {
                this.VSList.Select(1, 0, 1, this.VSList.Cols.Count - 1);
            }
        }

        private void ToolStripButton2_Click(object sender, EventArgs e)
        {
            LVYModule.ShowHelp(@"DANHMUCDUNGCHUNG\DANHMUC\PHUTUNGTAISAN.mht");
        }

        private void TxtSearchCode_TextChanged(object sender, EventArgs e)
        {
            this.SearchThietBi("Ma", this.TxtSearchCode.Text);
        }

        private void TxtSearchName_TextChanged(object sender, EventArgs e)
        {
            this.SearchThietBi("Ten", this.TxtSearchName.Text);
        }

        private void VSList_SelChange(object sender, EventArgs e)
        {
            this.VSPhuTung.Rows.Count = 1;
            if ((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0))
            {
                this.LoadPhuTung(Conversions.ToString(this.VSList[this.VSList.Row, 0]));
            }
        }

        private void VSPhuTung_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (!this.mEnabledControl)
            {
                e.Cancel = true;
            }
            else if (e.Col <= 5)
            {
                e.Cancel = true;
            }
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual ComboBox CboNhom
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboNhom;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboNhom_SelectedIndexChanged);
                if (this._CboNhom != null)
                {
                    this._CboNhom.SelectedIndexChanged -= handler;
                }
                this._CboNhom = value;
                if (this._CboNhom != null)
                {
                    this._CboNhom.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual CheckBox ckHienThi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ckHienThi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.ckHienThi_CheckedChanged);
                if (this._ckHienThi != null)
                {
                    this._ckHienThi.CheckedChanged -= handler;
                }
                this._ckHienThi = value;
                if (this._ckHienThi != null)
                {
                    this._ckHienThi.CheckedChanged += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual Button CmdAddRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAddRow_Click);
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click -= handler;
                }
                this._CmdAddRow = value;
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdCoppy
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCoppy;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCoppy_Click);
                if (this._CmdCoppy != null)
                {
                    this._CmdCoppy.Click -= handler;
                }
                this._CmdCoppy = value;
                if (this._CmdCoppy != null)
                {
                    this._CmdCoppy.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual Button CmdDelRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDelRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDelRow_Click);
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click -= handler;
                }
                this._CmdDelRow = value;
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdEdit = value;
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdFind = value;
            }
        }

        internal virtual ToolStripButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdPrint = value;
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        public bool EnabledControl
        {
            get
            {
                return this.mEnabledControl;
            }
            set
            {
                this.mEnabledControl = value;
                this.CmdAdd.Enabled = !value & this.mAllowAdd;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdSave.Enabled = value;
                this.CmdUnsave.Enabled = value;
                this.CmdDel.Enabled = !value & this.mAllowDel;
                this.CmdFind.Enabled = !value;
                this.CmdExit.Enabled = !value;
                this.CmdAddRow.Enabled = value;
                this.CmdDelRow.Enabled = value;
                this.CmdPrint.Enabled = !value;
                this.VSList.Enabled = !value;
                this.ckHienThi.Enabled = !value;
                this.CboNhom.Enabled = !value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripButton ToolStripButton2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.ToolStripButton2_Click);
                if (this._ToolStripButton2 != null)
                {
                    this._ToolStripButton2.Click -= handler;
                }
                this._ToolStripButton2 = value;
                if (this._ToolStripButton2 != null)
                {
                    this._ToolStripButton2.Click += handler;
                }
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual TextBox TxtSearchCode
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchCode;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchCode_TextChanged);
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged -= handler;
                }
                this._TxtSearchCode = value;
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtSearchName
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchName;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchName_TextChanged);
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged -= handler;
                }
                this._TxtSearchName = value;
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSList
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSList;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.VSList_SelChange);
                if (this._VSList != null)
                {
                    this._VSList.SelChange -= handler;
                }
                this._VSList = value;
                if (this._VSList != null)
                {
                    this._VSList.SelChange += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSPhuTung
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSPhuTung;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSPhuTung_BeforeEdit);
                if (this._VSPhuTung != null)
                {
                    this._VSPhuTung.BeforeEdit -= handler;
                }
                this._VSPhuTung = value;
                if (this._VSPhuTung != null)
                {
                    this._VSPhuTung.BeforeEdit += handler;
                }
            }
        }
    }
}

